<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2015-5-20
 * Time: 9:55
 */

namespace doumiaoduo\ueditor;


use yii\web\AssetBundle;

class UeditorAsset extends AssetBundle{

    public $sourcePath = '@doumiaoduo/ueditor/assets';

    public $depends = [
        'yii\web\JqueryAsset',
    ];

    public function init(){
        $js=YII_DEBUG?['ueditor/ueditor.config.js','ueditor/ueditor.all.js']:['ueditor/ueditor.config.js','ueditor/ueditor.all.min.js'];
        $js[]='ueditor/lang/zh-cn/zh-cn.js';
        $this->js=$js;
    }

}